-- GENERATED SPELL FOR [Rabid Thistle Bear] --


function spell0_2164(pUnit, Event) --@Rabies,n/a--
pUnit:FullCastSpellOnTarget(3150,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2164', 0, 1)
end

function Sorts_2164(pUnit, Event)
local choix_sorts_2164 = math.random(0, 0)
if choix_sorts_2164 == 0 then
pUnit:RegisterEvent('spell0_2164', 1, 1)
end
end

function mob2164_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2164', math.random(1500, 3000), 1)
end

function mob2164_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2164_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2164_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2164, 1, 'mob2164_Action')
RegisterUnitEvent(2164, 2, 'mob2164_Leave')
RegisterUnitEvent(2164, 3, 'mob2164_Kill')
RegisterUnitEvent(2164, 4, 'mob2164_Die')
